//order订单模块
import axios from '@/utils/request.js'
//通过顾客id查找订单
export function query(params){
    return axios.get('/order/query',{params})
}
//通过员工id查找订单
export function byWiterIdFin(params){
    return axios.get("/order/queryBasic",{params})
}
export function findAll(params){
    let obj = {...params};
    obj.page--;
    // if (!params.status){
    //     delete params.status;
    // }
    //遍历对象
    for (let key in obj){
        if(obj[key]===0){
            continue;
        }
        if(!obj[key]){
            delete obj[key]
        }
    }
    return axios.post('/order/queryPage',obj)
}